package com.shrimpcolo.johnnytam.FileIO;

import java.io.File;
import java.util.Scanner;


/**
 * 
 * @author Johnny Tam
 * 在之前上机考试基础上添加 文件夹拷贝练习
 *	
 */
public class TestFileIODemo {

	public static void main(String[] args) {		
		Scanner input = new Scanner(System.in);
		System.out.println("请输入文件目录");
		
		//E:\Coursera-Java\Eclipse\workspace\ThirdTest
		//String path = input.next();
		String path = "E:\\Coursera-Java\\Eclipse\\workspace\\ThirdTest";
		//String path = "E:\\Coursera-Java\\Eclipse\\workspace\\testFileIO";
		
		System.out.println(path);
		File file = new File(path);
		
		//new file
		LoopCopyFile mLoopCopyFile = new LoopCopyFile(file);
		//mLoopCopyFile.loopListFile();
		
		//拷贝文件夹， 输入目录目的地
		System.out.println("请输入目的地路径:");
		//String destPath = input.next();
		String destPath = "e:\\test2";
		System.out.println(destPath);
		File destFile = new File(destPath);
		
		mLoopCopyFile.loopCopyFile(destFile);
		
		
	}

}
